import Vue from 'vue'
import Router from 'vue-router'

import HomeContainer from '../components/tabbear/HomeContainer.vue'
import MemberContainer from '../components/tabbear/MemberContainer.vue'
import ShopcarContainer from '../components/tabbear/ShopcarContainer.vue'
import SearchContainer from '../components/tabbear/SearchContainer.vue'
import newsList from '../components/news/NewsList.vue'
import newsInfo from '../components/news/NewsInfo.vue'
import serach from '../components/serach/serach.vue'
import photosList from '../components/photos/PhotosList.vue'
import photoinfo from '../components/photos/photoInfo.vue'
import goodsList from '../components/goods/GoodsList.vue'
import goodsInfo from '../components/goods/GoodsInfo.vue'

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/', component: HomeContainer },
    { path: '/home', component: HomeContainer },
    { path: '/member', component: MemberContainer },
    { path: '/shopcar', component: ShopcarContainer },
    { path: '/search', component: SearchContainer },
    { path: '/home/newsList', component: newsList },
    { path: '/home/newsInfo/:id', component: newsInfo },
    { path: '/home/serach', component: serach },
    { path: '/home/photosList', component: photosList },
    { path: '/home/photoinfo/:id', component: photoinfo },
    { path: '/home/goodsList', component: goodsList },
    { path: '/home/goodsInfo/:id', component: goodsInfo }
  ],
  linkActiveClass: 'mui-active' // 覆盖默认的router样式,默认的样式:router-link-active
})
